home *** CD-ROM | disk | FTP | other *** search
/ Trusted Irix /B 4.0.4 / Trusted-Irix B-4.0.1.iso / dist / eoe1.idb / etc / lnsyscon.z / lnsyscon
Text File  |  1992-04-03  |  322b  |  16 lines

  1. #! /bin/sh
  2. #Tag 0x00000f00
  3. #
  4. # $Revision: 1.4 $
  5.  
  6. # make syscon and console the same
  7.  
  8. set `ls -ilL /dev/console /dev/syscon |
  9.     sed -e 's/.*\( [0-9]*\), *\([0-9]*\).*/\1 \2/'`
  10. if test -c /dev/console \
  11.     -a '(' ! -c /dev/syscon -o "$1" != "$3" -o "$2" != "$4" ')'
  12. then
  13.     rm -rf /dev/syscon
  14.     mknod /dev/syscon c $1 $2
  15. fi
  16.